const http = require("../utils/request.js") //引入封装好的js文件

module.exports = {
  doLogin(data){
    console.log('data',data)
    return http.post('/user/wxLogin',data)
  },
  getOrderList(){
    let userId = getApp().globalData.userInfo.id;
    return http.get('/appOrder/queryUserOrder/'+userId);
  }
}